<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <css file="__PUBLIC__/css/base.css"/>
            <css file="__PUBLIC__/css/category.css"/>
            <link type="text/css" href="__STATIC__/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-1.8.0.min.js"></script>
            <script type="text/javascript" src="__STATIC__/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
            <jsconst/>
            <script type="text/javascript">
                $(function(){
                    $("#tabs").tabs({selected:0});
                })
            </script>
    </head>
    <body>
        <!--现在的位置-->
            <div class="position">
                <span class="word">您现在的位置： ->  </span>
                <a href="__APP__/category/index" class="new_pos">栏目管理</a> 
                <span class="word"> ->  编辑栏目 </span>
            </div>
        <!--正文内容-->
            <form action="__CONTROL__/edit" method="post">
                <input type="hidden" name="catid" value="{$_GET.catid}"/>
                <div id="tabs">
                    <ul>
                        <li><a href="#tabs-0">基本内容</a></li>
                        <li><a href="#tabs-1">生成静态规则</a></li>
                        <li><a href="#tabs-2">模板设置</a></li>
                    </ul>
                <!--第一个 基本内容 里面内容-->
                    <div id="tabs-0">   
                        <table class="table1">
                            <tr>
                                <th>栏目名称：</th>
                                <td><input type="text" name="cname" style="width:360px;" value="{$field[0]['cname']}"/></td>
                            </tr>
                            <tr>
                                <th>目录名称：</th>
                                <td>
                                    <input type="text" name="htmldir" style="width:200px;" value="{$field[0]['htmldir']}"/>
                                    <span class="desc">目录名称必须为英文</span>
                                </td>
                            </tr>
                            <tr>
                                <th>跳转url：</th>
                                <td>
                                    <input type="text" name="gourl" style="width:260px;"  value="{$field[0]['gourl']}"/>
                                </td>
                            </tr>
                            <tr>
                                <th>关键字：</th>
                                <td>
                                    <input type="text" name="keywords" style="width:300px;"  value="{$field[0]['keywords']}"/>
                                </td>
                            </tr>
                            <tr>
                                <th>描述：</th>
                                <td>
                                    <textarea style="height:60px;width:90%" name="descroption">{$field[0]['descroption']}</textarea>
                                </td>
                            </tr>
                        </table>
                    </div>
                <!--第二个 生成静态规则 里面内容-->
                    <div id="tabs-1">
                        <table class="table1">
                            <tr>
                                <th>栏目生成静态：</th>
                                <td>
                                    <input type="radio" name="islisthtml" value="1"  <if value="$field.islisthtml eq 1">checked="checked"</if>/>是&nbsp;&nbsp;
                                    <input type="radio" name="islisthtml" value="0" <if value="$field.islisthtml eq 0">checked="checked"</if>/>否
                                </td>
                            </tr>
                            <tr>
                                <th>内容生成静态：</th>
                                <td>
                                    <input type="radio" name="isarchtml" value="1" <if value="$field.isarchtml eq 1">checked="checked"</if>/>是&nbsp;&nbsp;
                                    <input type="radio" name="isarchtml" value="0" <if value="$field.isarchtml eq 0">checked="checked"</if>/>否
                                </td>
                            </tr>
                            <tr>
                                <th>栏目页静态规则：</th>
                                <td><input type="text" name="listhtml" style="width:360px;" value="{$field['listhtml']}"/><span class="desc">{catdir}栏目目录{y}年{m}月{d}日{catid}栏目id{page}页码</span>
                                </td>
                            </tr>
                            <tr>
                                <th>内容页静态规则：</th>
                                <td><input type="text" name="archtml" style="width:360px;" value="{$field['archtml']}"/>
                                <span class="desc">{catdir}栏目目录{y}年{m}月{d}日{catid}栏目id{page}页码</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                <!--第三个 模板设置 里面内容-->
                    <div id="tabs-2">
                        <table class="table1">
                            <tr>
                                <th>列表页模板：</th>
                                <td>
                                    <input type="text" name="listtpl" id="listtpl" style="width:360px;"  value="{$field['listtpl']}"/>
                                    <a class="button2" tpltype="listtpl">选择模板</a>
                                </td>
                            </tr>
                            <tr>
                                <th>内容页模板：</th>
                                <td>
                                    <input type="text" name="arctpl" id="arctpl" style="width:360px;"  value="{$field['arctpl']}"/>
                                    <a class="button2" tpltype="contpl">选择模板</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                <!--修改栏目-->
                    <div>
                        <input type="submit" class="submit" value="修改栏目" style="font-size:13px;">
                    </div>
                </div>
            </form>
    </body>
</html>